/**
 * Created by henian.xu on 2017/7/3 0003.
 * 公共混合类
 */

// 清除浮动
@mixin clearfix() {
    &:before,
    &:after {
        content: '';
        display: table;
    }
    &:after {
        clear: both;
    }
}

// 单选或多行(chrome)显示
@mixin text-line($line) {
    overflow: hidden;
    @if ($line == 1) {
        white-space: nowrap;
        text-overflow: ellipsis;
    } @else if ($line >= 2) {
        display: -webkit-box;
        white-space: normal;
        -webkit-line-clamp: $line;
        -webkit-box-orient: vertical;
    }
}

@mixin make-icon {
    display: inline-block;
    font: normal normal normal 14px/1 Fonticon;
    font-size: inherit;
    line-height: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
